import http from "@/api";
import { Inventory } from "@/api/interface/province/inventory";
// 店铺列表查询
export const getShopListAPI = () => {
  return http.get<Inventory.ShopList[]>("/manager/shop/list", { loading: false });
};
// 商品库存查询
export const getInventoryListAPI = (data: Inventory.SearchParams) => {
  return http.post<Inventory.Row[]>("/manager/goodsInventory", data, { loading: false });
};
// 商品库存详情
export const getInventoryDetailAPI = (goodsId: string) => {
  return http.get<Inventory.GoodData>(`/manager/goodsInventory/${goodsId}`, { loading: false });
};
// 商品流水记录
export const getInventoryHistoryAPI = (data: Inventory.HistoryParams) => {
  return http.post<Inventory.HistoryData[]>("/manager/goodsInventory/record", data, { loading: false });
};
